Unsafe (pointer operations)

  • Allows pointer operations similar to C/C++.

  • Requires the project to enable unsafe compilation.

  • Used in:

    • high performance code

    • interop

    • game engines

unsafe {
    int a = 5;
    int* p = &a;
}